<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String [] strs = {"a","b","My name is Hong","사과|귤|딸기|배"};
	request.setAttribute("strs", strs);
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
fn:length(배열을 포함한 컬렉션 개수)) - ${fn:length(requestScope.strs) }<br>
fn:length(문자열 개수) =${fn:length(requestScope.strs[3]) }<br>
fn:subString() - ${fn:substring(requestScope.strs[2], 3, 5) }<br>
fn:join() - ${fn:join(requestScope.strs,"-"}<br>
fn:split() - ${fn:split(requestScope.strs[3]) }
<c:forEach items="${fn:split(requestScope.strs[3], '|') }" var="str">
	${str }<br>
</c:forEach>
</body>
</html>